package com.srpingde.hhh.http;

import android.content.Context;

import com.srpingde.hhh.application.HhhApp;

public class HHHAsyncHttpClient extends AsyncHttpClient{
	
	private static final int TIME_OUT = 10000;
	
	public HHHAsyncHttpClient(){
		super();
		setTimeout(TIME_OUT);
	}
	
	public void get(Context context, String url, RequestParams params, HHHAsyncHttpResponseHandler responseHandler) {
		if(!HhhApp.getInstance().isConnect()){
			HhhApp.getInstance().showDialog(context, "网络异常请尽量开启WIFI，节省您的网络流量！");
		}
		super.get(context, url, params, responseHandler);
	}
}
